package com.archerdu.apply.model;

import java.sql.Timestamp;
import java.util.List;

import org.dom4j.Element;

import com.archerdu.base.dao.TreeNode;

/**
 * Cate entity. @author MyEclipse Persistence Tools
 */

public class AdvertiseCatalog implements TreeNode<AdvertiseCatalog, String> {

	private static final long serialVersionUID = 6026053436820015924L;
	private String id;
	private String type;
	private String name;
	private String note;
	private String code;
	private String parentId;
	private Integer lev;
	private Integer createUser;
	private Integer updateUser;
	private Timestamp createtime;
	private Timestamp updatetime;
	private List<AdvertiseCatalog> children;

	// Constructors

	/** default constructor */
	public AdvertiseCatalog() {
	}

	/** minimal constructor */
	public AdvertiseCatalog(String name, String code) {
		this.name = name;
		this.code = code;
	}

	/** full constructor */
	public AdvertiseCatalog(String type, String name, String note, String code,
			String parentId, Integer lev, Integer createUser, Integer updateUser,
			Timestamp createtime, Timestamp updatetime) {
		this.type = type;
		this.name = name;
		this.note = note;
		this.code = code;
		this.parentId = parentId;
		this.lev = lev;
		this.createUser = createUser;
		this.updateUser = updateUser;
		this.createtime = createtime;
		this.updatetime = updatetime;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public Integer getLev() {
		return this.lev;
	}

	@Override
	public void setLev(Integer lev) {
		this.lev = lev;
	}

	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public Integer getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(Integer updateUser) {
		this.updateUser = updateUser;
	}

	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public Timestamp getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Timestamp updatetime) {
		this.updatetime = updatetime;
	}

    @Override
    public List<AdvertiseCatalog> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<AdvertiseCatalog> children) {
        this.children = children;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public void toElement(Element ele) {
        // TODO Auto-generated method stub
        
    }

}